package com.pioneer.cloudstorage.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class SearchFileVO {
    private Long id;
    private String fileName;
    private String filePath;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;

    // 可以添加其他需要的字段
    private Long fileSize;
    private String mimeType;
    private Integer isDirectory;

    public SearchFileVO() {}

    public SearchFileVO(Long id, String fileName, String filePath, LocalDateTime updatedTime) {
        this.id = id;
        this.fileName = fileName;
        this.filePath = filePath;
        this.updatedTime = updatedTime;
    }
}